<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" 
	template="/WEB-INF/templates/template.xhtml">
	
<ui:define name="headIncludes">
	<style>
		.ui-widget {
			font-size:13px; 
		}
	</style>
</ui:define>
	
	<ui:define name="pageName">Consultar Cargo</ui:define>
	
	<ui:define name="content">
		<div style="margin-left:15%;float:left;width:70%">
			<h:panelGrid columns="2">
				<h:outputText value="Código:"/>
				<h:outputText value="Cargo"/>
				<h:inputText style="width:100px;"/>
				<h:inputText  style="width:200px;"/>
			</h:panelGrid>
		
			<div style="width:74%;padding-top:10px;text-align:right;">
				<p:commandButton value="Consultar" style="height:28px;"/>
				<p:commandButton value="Novo" style="height:28px;" onclick="dialogAddCargo.show();"/>
				<p:commandButton value="Limpar" style="height:28px;"/>
			</div>	
		
			<div style="padding-top:10px;">
				<p:dataTable style="width:700px"  var="cargo" >  
			        <p:column headerText="Código" style="width:100px;">  
			            <h:outputText value="#{cargo.id}" />  
			        </p:column>  
			  
			        <p:column headerText="Cargo">  
			            <h:outputText value="#{cargo.cargo}" />  
			        </p:column> 	
			        <p:column headerText="" width="50">  
			             
			        </p:column> 
		  	  </p:dataTable>
			</div>
		</div>				 
	</ui:define>
	
	<ui:define name="popups">
		<ui:include src="formCargo.xhtml"></ui:include>
	</ui:define>
</ui:composition>